﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using V = Science.Mathematics.VectorCalculus;

namespace VectorCalculus5Ed.Chapter1.Section2
{
    public class Example01
    {
        public Example01()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
            V.Vector a = 3.0*V.UnitVector.i + V.UnitVector.j - 2.0*V.UnitVector.k;
            
            V.Vector b = V.UnitVector.i - V.UnitVector.j + V.UnitVector.k;

            double s = a * b;

            result += s.ToString()+ "   ";

            double sp  = (2.0*V.UnitVector.i + V.UnitVector.j - V.UnitVector.k)
                * (-2.0*V.UnitVector.j + 3.0 * V.UnitVector.k);

            result += sp.ToString() + "   ";
        }
    }
}

// 0   -5   